package obs;

//The pairing class should just define what's relevant for a Pairing. You can keep your constants in here too
public class Pairing {

    public final static String[] HR_LOOKUP = {"NA", "50", "100", "120", "160"};
    public final static String[] BP_LOOKUP = {"NA", "60/40", "80/60", "100/80", "120/80"};
    public final static String[] GCS_LOOKUP = {"NA", "A", "V", "P", "U"};
    public final static String[] RR_LOOKUP = {"NA", "14", "16", "18", "20"};
    
    // THE ACTUAL ROW OF NUMBERS FROM THE TEXT FILE
    // 0th element = id (which we dont use), 1st element = patient HR or whatever
    int[] arr;

    public Pairing() {
    }

    public Pairing(int[] arr) {
        this.arr = arr;
    }

    /**
     * TIM TO DO - COMPLETE THIS FOR ALL PROPERTIES YOU NEED
     */
    public String getPatient1HR() {
        return HR_LOOKUP[arr[1]];
    }

    public String getPatient1BP() {
        return BP_LOOKUP[arr[2]];
    }

    
    public String getPatient1GCS() {
        return GCS_LOOKUP[arr[3]];
    }
   
    public String getPatient1RR() {
        return RR_LOOKUP[arr[4]];
    }
       public String getPatient2HR() {
        return HR_LOOKUP[arr[5]];
    }

    public String getPatient2BP() {
        return BP_LOOKUP[arr[6]];
    }

    
    public String getPatient2GCS() {
        return GCS_LOOKUP[arr[7]];
    }
   
    public String getPatient2RR() {
        return RR_LOOKUP[arr[8]];
}
}